
//手持设备
if(!/\((iPhone|iPad|iPod)/i.test(navigator.userAgent)){return};
document.addEventListener('mouseover', function(e){
  var ele = e.target;
  do{
    if(ele.tagName == 'A'){
      ele.target = '_self';
      return;
    }
    if(ele.tagName == 'DIV'){return};
  }while(ele = ele.parentNode);
},false);


//获取url参数
function Request(name){
  var source = location.search;
  var reg = new RegExp("(^|\?|&)"+ name +"=([^&]*)(\s|&|$)", "i");

  if (reg.test(source)) 
  return RegExp.$2; 
  return "";
}



10.         function gup( name ) {    
11.           var regexS = "[\\?&]"+name+"=([^&#]*)";  //匹配name参数对   
12.               var regex = new RegExp( regexS );    
13.               var results = regex.exec( window.location.href );//过滤超链接   
14.               if( results == null ) {    
15.                   return "";    
16.           } else {    
17.                  document.getElementById("show").innerHTML = results[1];//显示对应的参数值   
18.                  return results[1];     
19.                  
20.           }    
21.       } 